package com.example.houseready

import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView

class relative_layout_home : AppCompatActivity() {
    @SuppressLint("WrongViewCast", "MissingInflatedId")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_relative_layout_home)
        var layout_ID =  findViewById<TextView>(R.id.textView_layoutID)
        layout_ID.setText("layout_constraintStart_toStartOf - 相对左边")

        var btn = findViewById<Button>(R.id.relative_back)
        btn.setOnClickListener {

            finish()
        }

    }
}